package com.thb.pay.api.merchant.fallback;

import com.thb.pay.api.merchant.MchPayPassageServiceApi;
import com.thb.pay.api.merchant.vo.req.MchPayPassagePageReq;
import com.thb.pay.api.merchant.vo.req.MchPayPassageReq;
import com.thb.pay.api.merchant.vo.resp.MchPayPassageVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class MchPayPassageServiceApiFallbackFactory implements FallbackFactory<MchPayPassageServiceApi> {


    @Override
    public MchPayPassageServiceApi create(Throwable throwable) {
        return new MchPayPassageServiceApi() {
            @Override
            public PageResult<MchPayPassageVo> findPage(MchPayPassagePageReq pageReq) {
                return null;
            }

            @Override
            public List<MchPayPassageVo> findAllList() {
                return null;
            }

            @Override
            public List<MchPayPassageVo> findListByMerchantId(Long merchantId) {
                return null;
            }

            @Override
            public MchPayPassageVo getByMerchantIdAndProductId(Long merchantId, Long productId) {
                return null;
            }

            @Override
            public List<MchPayPassageVo> findListByIds(List<Long> ids) {
                return null;
            }

            @Override
            public MchPayPassageVo getById(Long id) {
                return null;
            }

            @Override
            public void add(MchPayPassageReq mchPayPassageReq) {

            }

            @Override
            public void update(MchPayPassageReq mchPayPassageReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}